package aishua.com.mytestapplist.diyiview;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;

/**
 * Created by aishua on 2017/9/21.
 */

public class HenCoderView extends View {

    private Paint paint = new Paint();
    public HenCoderView(Context context) {
        super(context);
    }

    public HenCoderView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public HenCoderView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
//        paint.setColor(Color.RED);
        paint.setStyle(Paint.Style.STROKE);
        paint.setStrokeWidth(50);
        paint.setAntiAlias(true);
        canvas.drawCircle(300,300,200,paint);

    }
}
